package ooday01;

/*Person家族的测试类*/
public class ExtendsTest {
    public static void main(String[] args) {
        Student zg = new Student();
        zg.name="张光";
        zg.age=39;
        zg.address="北京";
        zg.className="2412";
        zg.stuid="001";
        zg.eat();
        zg.sleep();
        zg.sayHi();
        zg.study();

        Student ll=new Student("零零",29,"东北","2411","002");
        ll.eat();
        ll.sleep();
        ll.sayHi();
        ll.study();

        ddoctor mm=new ddoctor("满满",22,"无锡","主刀医生");
        mm.eat();
        mm.sleep();
        mm.sayHi();
        mm.cut();

    }
}
